package com.conversationboard.api.security;

import javax.ws.rs.core.SecurityContext;

import com.conversationboard.config.Configuration;

public class Security {

	public static boolean isLoggedIn(SecurityContext securityContext) {

		//TODO: remove this from the production code
		
		if (Configuration.getInstance().isTestServer()) {
			return true;
		}
		
		return (securityContext.getUserPrincipal() != null);
	}

}
